package com.zzyl.mapper;

import com.zzyl.entity.Resource;
import com.zzyl.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LoginMapper {
    /**
     * 根据用户名查询用户信息
     */
    User queryUserInfoByUsername(String username);

    /**
     * 查询用户关联菜单
     */
    List<Resource> queryResourceByUserId(Long id);
}
